<?php 

$id=$_GET['id'];
include '../Classes/studentHandler.php';
include '../Classes/db.php';

$x=new Dbconnect();
$con=$x->getConnection();

$studdel=new StudentHandler();//create a new object
$studdel->setConnect($con);
$studdel->setRegno($id);
$del=$studdel->getDelete();
echo $del;

?>